package com.wz.project.system.prjgroup.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

@Entity
@Table(name = "sys_prjgroup")
public class PrjgroupEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 项目组id
     */
    @Id
    private Integer prjgroupId;
    /**
     *
     */
    private String prjgroupName;
    /**
     * 部门id
     */
    private Integer deptId;
    /**
     * 项目组编号
     */
    private String code;
    /**
     * 项目组描述
     */
    private String remark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private String createBy;

    private Date updateTime;

    private String updateBy;

    /**
     * 删除标识
     */
    private String delFlag;

    /**
     * 项目组负责人
     */
    private String leader;

    @Transient
    private String deptName;

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getPrjgroupId() {
        return prjgroupId;
    }

    public void setPrjgroupId(Integer prjgroupId) {
        this.prjgroupId = prjgroupId;
    }

    public String getPrjgroupName() {
        return prjgroupName;
    }

    public void setPrjgroupName(String prjgroupName) {
        this.prjgroupName = prjgroupName;
    }

    public Integer getDeptId() {
        return deptId;
    }

    public void setDeptId(Integer deptId) {
        this.deptId = deptId;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getLeader() {
        return leader;
    }

    public void setLeader(String leader) {
        this.leader = leader;
    }
}
